﻿namespace Softserve.Pottery.Manufacturing.Domains
{
    using System;
    using System.Collections.Generic;
    using System.Data.Services.Common;
    using System.Runtime.Serialization;
    using Softserve.Pottery.Infrastructure;
    using Softserve.Pottery.Infrastructure.Interfaces;

    [DataContract]
    [DataServiceEntity]
    public class Plan : IValidatable, IDomain
    {
        #region Properties

        [DataMember]
        public int Id
        {
            get { return m_Id; }
            set { m_Id = value; }
        }
        

        [DataMember]
        public int TeamId
        {
            get { return m_TeamId; }
            set { m_TeamId = value; }
        }

        [DataMember]
        public DateTime DateBegin
        {
            get { return m_DateBegin; }
            set { m_DateBegin = value; }
        }

        [DataMember]
        public DateTime DateFinished
        {
            get { return m_DateFinished; }
            set { m_DateFinished = value; }
        }

        [DataMember]
        public List<int> BatchesId
        {
            get { return m_BatchesId; }
            set { m_BatchesId = value; }
        }

        #endregion

        #region Methods

        public bool Validate()
        {
            return true;
        }

        #endregion

        #region Fields

        private int m_TeamId = default(int);

        private DateTime m_DateBegin = default(DateTime);

        private DateTime m_DateFinished = default(DateTime);

        private List<int> m_BatchesId = new List<int>();

        private int m_Id = default(int);

        #endregion
    }
}
